home *** CD-ROM | disk | FTP | other *** search
/ Ultra Pack / UltraComputing Partner Applications.iso / WWW / maestro.run.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1996-03-28  |  744b  |  32 lines

  1. #!/bin/sh
  2. #set -x
  3. cd ../Maestro
  4. MAESTRODIR=`pwd`
  5. LD_LIBRARY_PATH=$MAESTRODIR/lib:/usr/openwin/lib:/usr/lib:$LD_LIBRARY_PATH
  6. PATH=$MAESTRODIR/bin:$PATH
  7. export MAESTRODIR LD_LIBRARY_PATH PATH HOME
  8. /bin/rm -rf /tmp/MAEstro
  9. /bin/mkdir /tmp/MAEstro
  10. /bin/mkdir /tmp/MAEstro/demo
  11. $MAESTRODIR/bin/MakeMAEstroLinks $MAESTRODIR/demo /tmp/MAEstro/demo > /dev/null
  12. $MAESTRODIR/bin/TimeLine /tmp/MAEstro/demo/Welcome -autoPlay -autoQuit
  13. /bin/rm -rf /tmp/MAEstro
  14.  
  15. # Here comes the killing!
  16.  
  17. pidproc() {
  18.     pid=`/usr/bin/ps -ef |
  19.         /usr/bin/grep $1 |
  20.         /usr/bin/grep -v grep |
  21.         /usr/bin/awk '{print $2}'`
  22. }
  23.  
  24. pidproc 'QuoteMaker '
  25. [ "$pid" != "" ] && kill $pid
  26.  
  27. pidproc 'DisplayTool '
  28. [ "$pid" != "" ] && kill $pid
  29.  
  30. pidproc 'DTR '
  31. [ "$pid" != "" ] && kill $pid
  32.